<% # pass in an artist object and a form object %>
<% if type == :artist%>
<%= hidden_field_tag :artist_id, artist.id.to_s %>
<% elsif type == :artwork %>
<%= hidden_field_tag :artwork_id, artwork.id.to_s %>
<% elsif type == :region %>
<%= hidden_field_tag :region_id, region.id.to_s %>
<% end %>
<%= render :partial => '/admin/medias/new_generic_media', :object => form %>